package com.carleasoft.mps.cms.business.repairs.constants;

import com.carleasoft.mps.core.result.BaseResult;

public enum ExceptionRepairsEnum implements BaseResult {
    DEAL_ERROR("7107100000","处理失败！"),
    IS_CAR("7107100001","该人员属于综合处理人，不能删除！"),
    BELONG_CAR("7107100002","该人员属于已属于车辆班组，不能重复添加！"),
    BELONG_EQUIP("7107100003","该人员属于已属于装备班组，不能重复添加！"),
    BELONG_BARRACKS("7107100004","该人员属于已属于营房班组，不能重复添加！"),
    CAR_DEAL_PERSON("7107100005","该人员属于车辆维修综合处理人，维修领域必须勾选‘车辆维修’！"),
    EQUIP_DEAL_PERSON("7107100006","该人员属于装备维修综合处理人，维修领域必须勾选‘装备维修’！"),
    BARRACKS_DEAL_PERSON("7107100007","该人员属于营房维修综合处理人，维修领域必须勾选‘营房维修’！"),
    ;

    private String code;

    private String message;

    ExceptionRepairsEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode(){
        return this.code;
    }

    @Override
    public String getMessage(){
        return this.message;
    }
}
